﻿namespace Codeplex.Unity.AutoRegister.Test.Config
{
    using System.Linq;
    using Codeplex.Unity.AutoRegister.Config;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using TestTargetAssembly;

    [TestClass]
    public class AssemblyRegistTypeTraitProviderTest
    {
        [TestMethod]
        public void PickupTest()
        {
            var provider = new AssemblyRegistTypeTraitProvider(typeof(TestTargetEntryPoint).Assembly);
            var traits = provider.GetRegistTypeTraits().ToArray();
            traits.Length.Is(3);
            traits[0].Name.Is("A");
        }
    }
}
